package vfs.common.file;

import java.io.FileNotFoundException;

/**
 * User: serge
 * Date: 24.11.13
 * Time: 22:18
 */
public class VirtualFileNotFoundException extends FileNotFoundException
{
    boolean directoryInsteadFile = false;
    boolean fileInsteadDirectory = false;

    /** simple case if no file at all */
    public VirtualFileNotFoundException()
    {
        super();
    }

    /** searched for file but got directory or otherwise */
    public VirtualFileNotFoundException(boolean directoryInsteadFile, boolean fileInsteadDirectory)
    {
        super();

        this.directoryInsteadFile = directoryInsteadFile;
        this.fileInsteadDirectory = fileInsteadDirectory;
    }

    public boolean isDirectoryInsteadFile()
    {
        return directoryInsteadFile;
    }

    public boolean isFileInsteadDirectory()
    {
        return fileInsteadDirectory;
    }
}
